home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Assemblers / 68kasm / globals.c < prev    next >
C/C++ Source or Header  |  1995-07-26  |  2KB  |  56 lines

  1. /******************************************************************************
  2.  * $Id: globals.c,v 1.1 1994/08/29 23:59:00 bmott Exp $
  3.  ******************************************************************************
  4.  *
  5.  *        GLOBALS.C
  6.  *        Global Variable Declarations for 68000 Assembler
  7.  *
  8.  *      Author: Paul McKee
  9.  *        ECE492    North Carolina State University
  10.  *
  11.  *        Date:    12/13/86
  12.  *
  13.  *   Copyright 1990-1991 North Carolina State University. All Rights Reserved.
  14.  *
  15.  ******************************************************************************
  16.  * $Log: globals.c,v $
  17.  * Revision 1.1  1994/08/29  23:59:00  bmott
  18.  * Initial revision
  19.  *
  20.  *****************************************************************************/
  21.  
  22.  
  23. #include <stdio.h>
  24. #include "asm.h"
  25.  
  26.  
  27. /* General */
  28.  
  29. int loc;        /* The assembler's location counter */
  30. char pass2;        /* Flag telling whether or not it's the second pass */
  31. char endFlag;        /* Flag set when the END directive is encountered */
  32.  
  33.  
  34. /* File pointers */
  35.  
  36. FILE *inFile;        /* Input file */
  37. FILE *listFile;        /* Listing file */
  38. FILE *objFile;        /* Object file */
  39.  
  40.  
  41. /* Listing information */
  42.  
  43. char line[256];        /* Source line */
  44. int lineNum;        /* Source line number */
  45. char *listPtr;        /* Pointer to buffer where a listing line is assembled */
  46. char continuation;    /* TRUE if the listing line is a continuation */
  47.  
  48.  
  49. /* Option flags with default values */
  50.  
  51. char listFlag = FALSE;    /* True if a listing is desired */
  52. char objFlag = TRUE;    /* True if an object code file is desired */
  53. char xrefFlag = FALSE;    /* True if a cross-reference is desired */
  54. char cexFlag = FALSE;    /* True is Constants are to be EXpanded */
  55. char absLongFlag = FALSE; /* True if all long absolute addresses */
  56.